<?php
include "../includes/db.php";
$user = $_GET['text1'];
$fen = $_GET['text2'];

$sql = "select * from count where user='$user' and used=1";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
    // 输出数据
    while($row = $result->fetch_assoc()) {
        if ($row['adminable'] == 1) {
            header("location:admin.php?user='$user'&fen='$fen'");
        }
        echo "你的分数：" . $row['count'] . "<br>";
    }
} else {
    echo "0 结果";
}
$conn->close();

